package demo09;

import java.util.ArrayList;
import java.util.List;

public class Test01 {
    public static void main(String[] args) {
        String[]strs={"12","345","6789","1","123","4567"};
        List<String>listA=new ArrayList<>();
        List<String>listB=new ArrayList<>();
        for (int i = 0; i < strs.length; i++) {
            if (strs[i].length()%2==0){
                listA.add(strs[i]);
            }else {
                listB.add(strs[i]);
            }
        }
        System.out.println(listA);
        System.out.println(listB);
    }
}
